package org.yray.io.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.yray.io.vo.ResultVo;

@RestController("ivr")
@RequestMapping("/ivr")
@Slf4j
public class IvrController {

    @GetMapping("/hello_ivr")
    public String helloIvr(@RequestParam("jobNo") String jobNo)
    {
        log.info(jobNo);
        return jobNo;
    }

    @GetMapping("/testPost")
    public String testPost(@RequestParam("filePath")String filePath)
    {
        return filePath;
    }

    @GetMapping("/testResultVo")
    public ResultVo testResultVo()
    {
        return new ResultVo(1);
    }
}
